package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.enums.ProcessStatus;
import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

/**
 * @Author: 李旭
 * @Time: 15:41
 * @Description:
 */
public interface OrderInfoService {
    Long submitOrder(OrderInfo orderInfo);

    boolean hasStock(Long skuId, Integer skuNum);

    void cancelOrder(Long orderId);

    OrderInfo getOrderInfo(Long orderId);

    void updateOrderStatus(Long orderId, ProcessStatus processStatus);

    void sendOrderStatus(Long orderId);

    //组织发送给仓库的所需要的数据
    Map<String,Object> initWareOrder(OrderInfo orderInfo);

    List<OrderInfo> orderSplit(Long orderId, String wareSkuMap);

    List<Map> orderSplit1(Long orderId, String wareSkuMap);
}
